package com.example.onlinemarket.bean;

import org.springframework.stereotype.Component;

import java.util.List;

public class OrderInfo {
    private User user;
    private Order order;
    private List<OrderedGood> OrderedGood;

    @Override
    public String toString() {
        return "OrderInfo{" +
                "user=" + user +
                ", order=" + order +
                ", OrderedGood=" + OrderedGood +
                '}';
    }

    public List<OrderedGood> getOrderedGood() {
        return OrderedGood;
    }

    public void setOrderedGood(List<OrderedGood> orderedGood) {
        OrderedGood = orderedGood;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public OrderInfo(User user, Order order, List<OrderedGood> orderedGood) {
        this.user = user;
        this.order = order;
        OrderedGood = orderedGood;
    }
}
